import loader from './Loader';


const Login = loader('Login');
const Register = loader('Register');
const Home = loader('Layout');
const Forget = loader('Forget');
const Editor = loader('Editor');

const routes = [
  {
    path: '/login',
    component: Login,
    name: '登录'
  },
  {
    path: '/register',
    component: Register,
    name: '注册'
  },
  {
    path: '/home',
    component: Home,
    name: '首页'
  },
  {
    path: '/forget',
    component: Forget,
    name: '忘记密码'
  },
  {
    path: '/editor',
    component: Editor,
    name: '编辑页'
  },
];

export default routes;